﻿using Microsoft.Windows.Forms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WenSkin.Controls;
using WenSkin.Forms;

namespace WenSkinTest
{
    public partial class Form2 : UIForm
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void WenButton1_Click(object sender, EventArgs e)
        {
            //new WenSkin.WenConfigForm() { SaveMessage = "test" }.ShowDialog();
        }

        private void WenButton1_Click_1(object sender, EventArgs e)
        {
            WenSkin.WenConfig wenConfig = new WenSkin.WenConfig(WenSkin.WenConfig.ConfigFormatEnum.Json);


            wenConfig.Show();

            //var ss = new WenSkin.WenJsonConfig.JsonConfig();

            //propertyGrid1.SelectedObject = wenTreeView1.Nodes[0];


        }

        private void UserControl11_ButtonCilck(object sender, UserControl1.ButtonClickEventArgs e)
        {
            wenTreeView1.Nodes[0].Nodes.Add("2222222");
        }

        private void UserControl11_RemoveCilck(object sender, UserControl1.ButtonClickEventArgs e)
        {
            wenTreeView1.Nodes[0].Remove();
        }
    }
}
